#include "Pickuper.h"
Pickuper::Pickuper()
{
	//Initialising code goes here.
	motor71=new Victor(6);
	LeftJoystick = new Joystick(1);
	RightJoystick = new Joystick(2);
	float speed=0;
}
Pickuper::~Pickuper()
{
	delete motor71;
	delete RightJoystick;
	delete LeftJoystick;
	// De initialising code goes here.	
}
void Pickuper::RunPickuper()
{
	speed=0;
	if(RightJoystick->GetRawButton(3) || LeftJoystick->GetRawButton(3)){
		speed = 1;
	}
	if(RightJoystick->GetRawButton(2) || LeftJoystick->GetRawButton(2)){
		speed = -1;
	}
	//motor71->Set(speed);
	motor71->SetRaw(speed);
	//motor71->SetSpeed(speed);
	// Main loop goes here.
}
//#endif
